TARGET=packet_sniffer
CC=gcc

CFLAGS= -Wall -g

VPATH=build:src
OBJS=main.o
OBJS+=log_file.o
OBJS+=dump_packet.o

${TARGET}: ${OBJS}
	$(CC) $? -o $@
build/main.o: main.c
	$(CC) -c $? -o $@
build/log_file.o: log_file.c
	$(CC) -c $? -o $@
build/dump_packet.o: dump_packet.c
	$(CC) -c $? -o $@



.PHONY:
	clean

clean:
	-rm build/* ${TARGET}

